import { FormProps } from "/@/components/Form";
import { getSelectListApi } from "/@/api/core/college";

export const searchFormConfig: FormProps = {
  colon: true,
  labelCol: {
    span: 3,
  },
  schemas: [
    {
      field: "userName",
      label: "姓名",
      component: "Input",
      colProps: {
        span: 11,
      },
    },
    {
      field: "collegeId",
      label: "学院",
      component: "ApiSelect",
      colProps: {
        span: 11,
        offset: 2,
      },
      componentProps: {
        api: getSelectListApi,
        labelField: "collegeName",
        valueField: "collegeId",
      },
    },
  ],
};
